package com.java.base.exercise.designmode.adpect;

/**
 * @Author RenPu
 * @Date 2023/4/19 16:51
 * @Version 1.0
 * @Description: 小野鸭适配器，让小野狗模拟小野鸭叫
 **/
public class WhildDuckAdpect implements Duck {

    private Dog dog;

    public WhildDuckAdpect(Dog dog) {
        this.dog = dog;
    }

    @Override
    public String gaga() {
        return dog.wangwang();
    }
}
